<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewClientTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <p:panelGrid columns="2">
                    <f:facet name="header">
                        <h3>View</h3>
                    </f:facet> 
                    <f:facet name="footer">
                        <h:outputText value="&nbsp;" />
                    </f:facet>
                    <h:outputText value="#{bundle.ViewClientLabel_name}"/>
                    <h:outputText value="#{clientController.selected.name}" title="#{bundle.ViewClientTitle_name}"/>
                    
                    
                    <h:outputText value="#{bundle.ViewAddressLabel_street}"/>
                    <h:outputText value="#{clientController.selected.address.street}" title="#{bundle.ViewClientTitle_address}"/>
                     <h:outputText value="#{bundle.ViewAddressLabel_city}"/>
                    <h:outputText value="#{clientController.selected.address.city}" title="#{bundle.ViewAddressTitle_city}"/>
                    <h:outputText value="#{bundle.ViewAddressLabel_stateORprovince}"/>
                    <h:outputText value="#{clientController.selected.address.stateORprovince}" title="#{bundle.ViewAddressTitle_stateORprovince}"/>
                    <h:outputText value="#{bundle.ViewAddressLabel_postalCode}"/>
                    <h:outputText value="#{clientController.selected.address.postalCode}" title="#{bundle.ViewAddressTitle_postalCode}"/>
                    <h:outputText value="#{bundle.ViewAddressLabel_contry}"/>
                    <h:outputText value="#{clientController.selected.address.contry}" title="#{bundle.ViewAddressTitle_contry}"/>
                    
                    
                </p:panelGrid>
                <br />
                <p:commandButton action="#{clientController.destroyAndView}" value="#{bundle.ViewClientDestroyLink}"/>
                <br />
                <p:commandButton action="#{clientController.prepareList}" value="#{bundle.ViewClientShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/home" value="#{bundle.ViewClientIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
